// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'

import Mint from 'mint-ui'
import 'mint-ui/lib/style.css'
import VueRouter from 'vue-router'
import index from './components/index/index.vue'
import near from './components/near/near.vue'
import find from './components/find/find.vue'
import read from './components/read/read.vue'
import goodbook from './components/goodbooks/goodbooks.vue'
import article from './components/article/article.vue'
import city from './components/city/city.vue'
import life from './components/life/life.vue'
import lifeArticle from './components/lifeArticle/lifeArticle.vue'
import { store } from './store/store.js'



Vue.use(Mint);
Vue.use(VueRouter);
const routes = [ {path:'/',redirect: '/index'},
                 {path:'/index',component:index},
                 {path:'/near',component:near},
                 {path:'/find',component:find},
                 {path:'/read',component:read},
                 {path:'/goodbook',component:goodbook},
                 {path:'/article/:id',component:article},
                 {path:'/city',component:city},
                 {path:'/life',component:life},
                 {path:'/lifeArticle/:id',component:lifeArticle}
                ]


var router = new VueRouter({
    linkActiveClass:'active',
    routes
});

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  store,
  router,
  template: '<App/>',
  components: { App }
})
